const express = require('express');

let app = express();

// 设置静态资源根路径
app.use(express.static(__dirname + '/public'))


// 路由
app.get('/login', (req, res) => {
    res.send('登录页')
})
app.get('/reg', (req, res) => {
    res.send('注册页')
})

app.all('*', (req, res) => {
    res.send('404 NOT FOUND')
})

app.listen(9527, () => {
    console.log('启动成功....');
})